home *** CD-ROM | disk | FTP | other *** search
- Path: cloud9.net!not-for-mail
- From: hraiser@cloud9.net
- Newsgroups: comp.lang.c++
- Subject: Re: U MUST READ THIS!!!!!
- Date: 2 Feb 1996 12:49:34 -0500
- Organization: Cloud 9 Internet, White Plains, NY, USA
- Message-ID: <4etire$obb@cloud9.net>
- References: <4epbn1$4hq@ixnews7.ix.netcom.com>
- NNTP-Posting-Host: cloud9.net
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Jeremy Johnston (jeremyx@ix.netcom.com) wrote:
- : Everyone keeps telling me not to use the "goto"
- : statement,they act like it's the plague! What is wrong with the goto
- : statement & what can i use in it's place?
-
- The goto keyword has no place in an object oriented and/or structured
- programming environment. It is rarely used in professional programming, and
- when it is used chances are that it's use could have been worked around.
- The only place I have seen it used in professional class C/C++ code is to
- jump out of loops. Bottom line is the unwritten law has always been "don't
- use goto unless you really know how to code and you are up to the criticism
- it's use may bring."
-
- After reading your previous posts, I suggest you pick up a introductory
- C primer and thoroughly digest it before you attempt to post on the
- comp.lang.c* newsgroups.
-
-
-